<?php
// +----------------------------------------------------------------------
// |  [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013  All rights reserved.
// +----------------------------------------------------------------------
// | Author:
// +----------------------------------------------------------------------

namespace app\admin\controller;

use app\common\controller\Admin;

/**
 * 投资
 * Class Invest
 * @package app\admin\controller
 */
class Invest extends Admin
{

    /**
     * 首页
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function index()
    {
        $list = model('borrowInvest')->where([])->order('id desc')
            ->paginate(15, false, array(
                'param' => $this->request->param()
            ));

        $data = array(
            'list' => $list,
            'page' => $list->render(),
//            'param' => $param
        );
        $this->assign($data);
        $this->setMeta('购买列表');
        return $this->fetch();
    }

}